package com.lq.test;

import com.lq.entity.User;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@SpringBootTest
public class Yml {

    @Value("${user.age}")
    private String age;

    @Resource
    private User user;

    @Test
    void Ces(){
        System.out.println("userpwd:"+age);
        System.out.println(user);
    }

}
